<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/WEB-INF/tld/orderStatus.tld" prefix="os" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/core.tld" prefix="c"%>
<html>
<%@ include file="../common.jsp"%>
<script type="text/javascript" src="<%=basePath%>js/datePicker/WdatePicker.js" defer="defer"></script>
<script type="text/javascript" src="js/artDialog/artDialog.js?skin=idialog" ></script>
<script type="text/javascript" src="js/planeButton.js"></script>
<script type="text/javascript" src="js/page.js"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<body>
<form action="plane_list.shtml" method="post">
	<table width="100%" border="0" cellpadding="0" cellspacing="0" id="myTable">
		<tr>
			<td width="17" valign="top" background="images/mail_leftbg.gif"><img
				src="images/left-top-right.gif" width="17" height="29" /></td>
			<td valign="top" background="images/content-bg.gif">
			<div class="titlebt" style="width:80px; float: left">所有订单</div><div class="titlebt" style="cursor: pointer;" onclick="location.href='detail_childrenList.shtml'">航程订单</div>
			</td>
			<td width="16" valign="top" background="images/mail_rightbg.gif"><img
				src="images/nav-right-bg.gif" width="16" height="29" /></td>
		</tr>
		<tr>
			<td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9">
			<br/>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mytable">
				<tr><th class="left" width="15%">订单状态</th><td class="border-top">
					<select name="vo.parentOrder.statusDesc" id='orderStatus'>
						<option value="">所有订单</option>
						<option value="-1">订单关闭</option>
						<option value="0">等待支付</option>
						<option value="1">支付完成</option>
						<option value="2">出票完成</option>
						<option value="4">申请退款</option>
						<option value="5">退款成功</option>
					</select></td>
					<th width="15%">锁定状态</th><td class="border-top">
					<select name="vo.parentOrder.lock" id='lock'>
						<option value="">所有订单</option>
						<option value="true">锁定</option>
					</select>
					<script type="text/javascript">
						$('#orderStatus').attr('value','${vo.parentOrder.statusDesc}');
						$('#lock').attr('value','${vo.parentOrder.lock==false?"":vo.parentOrder.lock}');
					</script>
				</td>
					</tr>
        		<tr><th class="left" width="15%">选择条件</th><td colspan="3">
	        		<input type="radio" ${vo.parentOrder.title==5 || vo.parentOrder.title==null?'checked':''} name="vo.parentOrder.title" id="pnrno" value="5"/><label for="pnrno">PNR编码</label>
	        		<input type="radio" ${vo.parentOrder.title==3?'checked':''} name="vo.parentOrder.title" id="passenger" value="3"/><label for="passenger">乘客姓名</label>
        			<input type="radio" ${vo.parentOrder.title==1?'checked':''} name="vo.parentOrder.title" id="order_id" value="1"/><label for="order_id">系统订单号</label>
        			<input type="radio" ${vo.parentOrder.title==2?'checked':''} name="vo.parentOrder.title" id="mem_num" value="2"/><label for="mem_num">会员编号</label>
        			<input type="radio" ${vo.parentOrder.title==4?'checked':''} name="vo.parentOrder.title" id="link_tel" value="4"/><label for="link_tel">联系号码</label>
        		</td></tr>
        		<tr><th class="left" width="15%">输入条件</th><td colspan="3"><input name="vo.parentOrder.decription" value="${vo.parentOrder.decription}" /></td></tr>
        		<tr><th class="left" width="15%">选择日期</th><td colspan="3"><input type="text" class="Wdate" value="${vo.parentOrder.startTime}" onclick="WdatePicker({maxDate:'%y-%M-%d'});" readonly="readonly" name="vo.parentOrder.startTime" id="startTime" align="middle" /> ~
					<input type="text" class="Wdate"  value="${vo.parentOrder.endTime}" onclick="WdatePicker({minDate:'#F{$dp.$D(\'startTime\')}',maxDate:'%y-%M-%d'});" readonly="readonly" name="vo.parentOrder.endTime" align="middle" /></td></tr>
        		<tr>
        			<td style="text-align: center;" class="left" colspan="5"><button id="btn_search" type="submit" class="Submit">立即查询</button>&nbsp;&nbsp;<button id="btn_clear" type="button" onclick="clearAll(this.form)" class="Submit">清 空</button></td>
        		</tr>
        		</table>
        	
			</td>
			<td background="images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		<tr>
			<td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9">
				<TABLE height="auto" border=0 class="mytable" cellPadding=0 cellSpacing=0>
		<TBODY>
			<TR>
				<TD height="5" colspan="16"></TD>
			</TR>
			<TR>
				<TH class="left">系统订单号</TH>
				<TH>会员编号</TH>
				<TH>联系电话</TH>
				<TH>订单总额</TH>
				<TH>订单状态</TH>
				<TH>航程类型</TH>
				<TH>预订时间</TH>
				<TH>预订途径</TH>
				<TH>是否锁定</TH>
				<TH>&nbsp;</TH>
			</TR>
			<s:if test="vo.parentOrders!=null && vo.parentOrders.size()>0">
			<s:iterator value="vo.parentOrders" id="order" var="lst">
				<TR>
					<td class="left">
					<s:property value="#lst.systemSn" />
					</td>
					<td>${lst.memberNum==""?"NULL":lst.memberNum}</td>
					<td>${lst.telphone}</td>
					<td><fmt:formatNumber value="${lst.orderTotal}" pattern="￥0.00"></fmt:formatNumber>
					</td>
					<td><os:parentOrder orderstatus="${lst.status }"></os:parentOrder></td>
					<td><c:if test="${lst.voyagetype==1}">单程</c:if>
					<c:if test="${lst.voyagetype==2}">往返</c:if>
					</td>
					<td><s:date name="bookTime" format="yyyy年MM月dd日 HH:mm"/>
					</td>
					<td>
						<s:if test="orderWay==0"><b style="color:#46A3FF ">网站</b></s:if>
						<s:elseif test="orderWay==1"><b style="color: #FF8000;">手机终端</b></s:elseif>
					</td>
					<td>
					<s:if test="lock==1">
						<font style="color: red;">${lst.lockUser}<br/>锁定处理中</font>
					</s:if>
					<s:else>
						——
					</s:else>
					</td>
					<td style="text-align: center;">
					<a href="javascript:void(0);" class="left_txt3" style="cursor: hand;" onclick = "location.href='detail_getObject.shtml?cid=${lst.id}';return false;">查看</a>
					<s:if test="lock==true && #session.login_user eq lockUser">
						&nbsp;<a href="javascript:orderLock('${lst.id}',0,'detail_getObject.shtml?cid=${lst.id}');" style="color: blue;">订单解锁</a>
					</s:if>
					<s:if test="lock==false || lock==null">
						&nbsp;<a href="javascript:orderLock('${lst.id}',1,'detail_getObject.shtml?cid=${lst.id}');">锁定订单</a>
					</s:if>
					</td>
				</TR>
			</s:iterator>
			<tr>
				<td class="left" colspan="10" align="right"
					style="background: #FAFBFC repeat-x; height: 28">
					${vo.pageBean.pageToolsMenu}</td>
			</tr></s:if>
			<s:else>
					<tr><td class="left" colspan="10" align="center"
							style="background: #FAFBFC repeat-x; height: 28">
							未搜索到符合条件的信息……</td>
				</tr></s:else>
			<TR>
				<TD height="5" colspan="16"></TD>
			</TR>
		</TBODY>
	</TABLE>
			</td>
			<td background="images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		
		<tr>
			<td valign="bottom" background="images/mail_leftbg.gif"><img
				src="images/buttom_left2.gif" width="17" height="17" /></td>
			<td background="images/buttom_bgs.gif"><img
				src="images/buttom_bgs.gif" width="17" height="17"></td>
			<td valign="bottom" background="images/mail_rightbg.gif"><img
				src="images/buttom_right2.gif" width="16" height="17" /></td>
		</tr>
	</table>
	</form>
</body>
</html>